/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.entity;

import com.thinkgem.jeesite.modules.sys.entity.Area;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 技术明白人信息Entity
 * @author zad
 * @version 2018-03-26
 */
public class GtTecClear extends DataEntity<GtTecClear> {
	
	private static final long serialVersionUID = 1L;
	private Area area;		// 地区
	private String type;	// 技术明白人类型：对应字典：gt_clear_type 
	private String name;		// 技术明白人
	private String idcard;		// 身份证号
	private String tel;		// 明白人电话
	private String address;		// 明白人地址
	private String mobile;		// 联系电话
	
	public GtTecClear() {
		super();
	}

	public GtTecClear(String id){
		super(id);
	}

	@NotNull(message="地区不能为空")
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Length(min=0, max=64, message="技术明白人长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	@Length(min=0, max=13, message="明白人电话长度必须介于 0 和 13 之间")
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	@Length(min=0, max=256, message="明白人地址长度必须介于 0 和 256 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=13, message="联系电话长度必须介于 0 和 13 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
}